"use strict";

/**
 * @desc   清除对象里面空的属性
 * @param  {Object}
 * @return {Object}
 */
function deleteEmptyObjItem(obj) {
  for (var i in obj) {
    var value = obj[i];

    if (value === null || value === undefined || value === "" || !value && value !== 0) {
      delete obj[i];
    }
  }

  return obj;
}

;
module.exports = deleteEmptyObjItem;